<?php 
class OtherAction extends PublicAction{
	public function index(){
		if(IS_POST){
			$data['name'] = I('post.name');
			$data['tel'] = I('post.tel');
			$data['cityCode'] = I('post.citycode');
			$data['areaCode'] = I('post.area_id');			
			$data['address'] = I('post.address');
			$data['clothes_num'] = I('post.clothes_num');
			$data['book_num'] = I('post.book_num');			
			$data['othercount'] = I('post.other_num');	
			$data['add_date']  = date('Y-m-d H:i:s',time());	
			//$files = I('post.file');
			/*  echo "<pre>";
			 var_dump($files);die; */
			//$data['image'] = $files[0];
			//var_dump($data);die;
			$products = M("other");
			$insertId = $products->add($data);
		/* 	foreach($files as $k => $v){
				$picMap['other_id'] = $insertId;
				$picMap['image'] = $v;
				M("other_images")->add($picMap);
			} */
		
			$msg = "提示：我们会根据路线提前通知您，感谢您的爱心！";
		}
		$this->imgdes = C('SITE_INFO.other_description');
		//echo $this->imgdes;die;
		$this->msg = $msg?$msg:0;
		$this->display();
	}
}
?>